import {AppRegistry} from 'react-native';
import {pluginKey as appName} from './plugin_sticker/PluginConfig.json';
import PluginManager from 'rtn-supernote-plugin-core/src/PluginManager';
import StickerPage from './src/page/StickerPage';
import NativeEvent from 'rtn-supernote-plugin-core/src/module/NativeEvent';
import i18n from './src/i18n';
// 注册应用组件
AppRegistry.registerComponent(appName, () => StickerPage);
PluginManager.init();

NativeEvent.registerMenuItemRes(
  1,
  {
    id: 100,
    name: "{\n" +
      "    \"en\":\"Sticker\",\n" +
      "    \"zh_CN\":\"贴纸\",\n" +
      "    \"zh_TW\":\"貼紙\",\n" +
      "    \"ja\":\"ステッカー\"\n" +
      "  }",
    color: 0xffffff,
    icon: 'icon.png',
    bgColor: 0x000000,
    expandMenuItem: 0,
  },
  {
    regionType: 3,
    regionWidth: 1404,
    regionHeight: 1872,
  },
);
NativeEvent.registerMenuItemRes(
  2,
  {
    id: 200,
    name:  "{\n" +
    "    \"en\":\"New Sticker\",\n" +
    "    \"zh_CN\":\"新建贴纸\",\n" +
    "    \"zh_TW\":\"新建貼紙\",\n" +
    "    \"ja\":\"新しいステッカー\"\n" +
    "  }",
    color: 0xffffff,
    icon: 'icon.png',
    bgColor: 0x000000,
    editDataTypes: [0, 5],
  },
  {
    regionType: 3,
    regionWidth: 1404,
    regionHeight: 1872,
  },
);
